package JavaHomework02;

import java.util.ArrayList;

public class zuoye06 {
	public static void main(String[] args) {
		ArrayList <Integer> list=new ArrayList<Integer>();
		list.add(100);
		list.add(200);
		list.add(300);		
		printList(list);
	}

	private static void printList(ArrayList<Integer> list) {
		System.out.print("{");
		for(int i=0;i<list.size();i++){
			System.out.print(list.get(i));
			if(i<list.size()-1){
				System.out.print("@");
			}
		}
		System.out.print("}");
	}
}

